<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="{$_C.hy_path}css/amazeui.min.css" />
		<link rel="stylesheet" type="text/css" href="{$_C.hy_path}css/hy.admin.css" />
	</head>

	<body>
		<div class="am-g">
			{include file='../Common/hy_header.html'}
			<div class="am-u-md-12 am-u-end">
				<form class="am-form am-form-horizontal hy-js-form">
					{section name=total loop=7}
					<!--第{$smarty.section.total.index+1}轮-->
					<div class="am-form-group">
						<label for="user-name" class="am-u-sm-1 am-form-label">第{$smarty.section.total.index+1}轮：</label>
					</div>
					<div class="am-form-group">
						<label for="user-name" class="am-u-sm-1 am-form-label">周边开始时间</label>
						<div class="am-u-sm-3">
							<input type="text" onclick="laydate({ istime: true, format: 'YYYY-MM-DD hh:mm:ss' })" name="zbbegin_time{$smarty.section.total.index+1}"  value="{$info[$smarty.section.total.index].zbbegin_time|date_format:'Y-m-d H:i:s'}" placeholder="">
							<input type="hidden" name="id{$smarty.section.total.index+1}" value="{$info[{$smarty.section.total.index}].id}">
						</div>
						<label for="user-name" class="am-u-sm-1 am-form-label">周边持续时间（分钟）</label>
						<div class="am-u-sm-3" style="float: left;">
							<input type="text" name="zbcontinue_time{$smarty.section.total.index+1}" value="{$info[$smarty.section.total.index].zbcontinue_time}" placeholder="">
						</div>
					</div>
					<div class="am-form-group">
						<label for="user-name" class="am-u-sm-1 am-form-label">电视开始时间</label>
						<div class="am-u-sm-3">
							<input type="text" onclick="laydate({ istime: true, format: 'YYYY-MM-DD hh:mm:ss' })" name="tvbegin_time{$smarty.section.total.index+1}"  value="{$info[$smarty.section.total.index].tvbegin_time|date_format:'Y-m-d H:i:s'}" placeholder="">
						</div>
						<label for="user-name" class="am-u-sm-1 am-form-label">电视持续时间（分钟）</label>
						<div class="am-u-sm-3" style="float: left;">
							<input type="text" name="tvcontinue_time{$smarty.section.total.index+1}" value="{$info[$smarty.section.total.index].tvcontinue_time}" placeholder="">
						</div>
					</div>
					<div class="am-form-group">
						<label for="user-name" class="am-u-sm-1 am-form-label">tv红包</label>
						<div class="am-u-sm-3">
							<select name="tvhb_id{$smarty.section.total.index+1}">
								<option value="0">暂不绑定</option>
								<option {if 9999 eq $info[$smarty.section.total.index].tvhb_id  } selected="selected" {/if} value="9999">领取卡券</option>
								{foreach from=$hongbao.tvHongbao item=item }
								<option {if $item.id eq $info[$smarty.section.total.index].tvhb_id  } selected="selected" {/if} value="{$item.id}">{$item.title}</option>
								{/foreach}
						 	</select>
						</div>
						<label for="user-name" class="am-u-sm-1 am-form-label">周边红包</label>
						<div class="am-u-sm-3" style="float: left;">
							<select name="zbhb_id{$smarty.section.total.index+1}">
								<option value="0">暂不绑定</option>
								<option {if 9999 eq $info[$smarty.section.total.index].zbhb_id  } selected="selected" {/if} value="9999">领取卡券</option>
								{foreach from=$hongbao.zbHongbao item=item }
								<option {if $item.id eq $info[$smarty.section.total.index].zbhb_id  } selected="selected" {/if} value="{$item.id}">{$item.title}</option>
								{/foreach}
						 	</select>
						</div>
					</div>
					
					<!--第{$smarty.section.total.index+1}轮end-->
					 {/section}
					 <div class="am-form-group">
						<div class="am-u-sm-9 am-u-sm-push-3">
							<button type="button" class="am-btn am-btn-primary hy-js-submit">{$_L.SAVE}</button>
						</div>
					</div> 
				<div style="height:100px;"></div
				</form>
			</div>
		</div>
		{include file='../Common/hy_footer.html'}
		<script type="text/javascript" src="{$_C.hy_path}js/laydate/laydate.js"></script>
		<script type="text/javascript">
		   hy_submit('index.php?g=admin&m=newYear&a={$action}',"",function(result){
					showMsg(result.content,result.error);
		   });
		</script>
	</body>

</html>